package com.zt.bigdata.spark.dataalgorithms.chapter03

import com.zt.bigdata.spark.Constant

/**
  *
  */
object Main {
  def main(args: Array[String]): Unit = {
    var parameter = Parameter("local[2]", 1, 10,
      s"${Constant.BASE_PATH}/chapter03input.txt")
    new Top10()
      .setAppName("Top10")
      .process(parameter)

    parameter = Parameter("local[2]", 1, 10,
      s"${Constant.BASE_PATH}/chapter03input.txt")
    new Top10NonUnique()
      .setAppName("Top10NonUnique")
      .process(parameter)
  }
}
